import Editor from 'e-ui/lib/Editor'
import tools from 'utils/tools'

Editor.props.headers.default = () => {
  let headers = tools.getHeaders()
  let xUserId = headers['X-SNS-UserId']
  let xTimestamp = headers['X-SNS-Timestamp']
  let xSignature = headers['X-SNS-Signature']
  let xClientType = headers['X-SNS-ClientType']
  return `&xUserId=${xUserId}&xTimestamp=${xTimestamp}&xSignature=${xSignature}&xClientType=${xClientType}`
}

export default Editor
